﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage.Master" AutoEventWireup="true" CodeBehind="QuanLyChangBay.aspx.cs" Inherits="AirPlane.QuanLyChangBay" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

    <style type="text/css">
        .style1
        {
        	width:90%;
        	
        }
        .style2
        {
            width: 385px;
        }
         </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
   <ContentTemplate>
    <table align="center" class="style1">
        <tr>
            <td colspan="2" >
             <h3 class="page-title-517">QUẢN LÝ CHẶNG BAY</h3>
             </td>
        </tr>
       
        
        
     
    </table>
    <div id="search-Chuyen-Bay-Di">
       <asp:Label ID="lbChangBay" runat="server" Text=""></asp:Label>
    <asp:GridView ID="gwChangBay" runat="server" AutoGenerateColumns="False" 
        CellPadding="4" GridLines="Horizontal" ForeColor="#333333" AllowPaging="True" 
            CellSpacing="2" DataKeyNames="ID_changBay" HorizontalAlign="Center" 
            onpageindexchanging="gwChangBay_PageIndexChanging" 
            onrowcancelingedit="gwChangBay_RowCancelingEdit" 
            onrowdeleting="gwChangBay_RowDeleting" onrowediting="gwChangBay_RowEditing" 
            onrowupdating="gwChangBay_RowUpdating" ShowFooter="True">
        <AlternatingRowStyle BackColor="White" />
         <Columns>
             <asp:TemplateField HeaderText="Chặng bay">
                 <ItemTemplate>
                     <asp:Label ID="Label1" runat="server" Text='<%# Bind("ID_changBay") %>'></asp:Label>
                 </ItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="80px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Sân Bay Đi">
                 <ItemTemplate>
                     <asp:Label ID="lbSanBayDi" runat="server" Text='<%# Bind("tenSanBayDi") %>'></asp:Label>
                 </ItemTemplate>
                 <EditItemTemplate>
                     <asp:DropDownList ID="ddlSanBayDiQL" runat="server" CssClass="ddlSanBay1">
                     </asp:DropDownList>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:DropDownList ID="ddlSanBayDiQL_insert" runat="server" 
                         CssClass="gw-ddlSanBay1">
                     </asp:DropDownList>
                 </FooterTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="200px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Sân Bay Đến">
                 <FooterTemplate>
                     <asp:DropDownList ID="ddlSanBayDenQL_insert" runat="server" 
                         CssClass="gw-ddlSanBay1">
                     </asp:DropDownList>
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:Label ID="lbSanBayDen" runat="server" Text='<%# Bind("tenSanBayDen") %>'></asp:Label>
                 </ItemTemplate>
                 <EditItemTemplate>
                     <asp:DropDownList ID="ddlSanBayDenQL" runat="server" CssClass="ddlSanBay1">
                     </asp:DropDownList>
                 </EditItemTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="200px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="số Dặm">
                 <ItemTemplate>
                     <asp:Label ID="Label4" runat="server" Text='<%# Bind("soDam") %>'></asp:Label>
                 </ItemTemplate>
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("soDam") %>' 
                         CssClass="gw-input"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtsoDam" runat="server" CssClass="gw-input"></asp:TextBox>
                 </FooterTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="100px" />
             </asp:TemplateField>
             <asp:TemplateField HeaderText="Nhiên Liệu Dự Kiến">
                 <ItemTemplate>
                     <asp:Label ID="Label5" runat="server" Text='<%# Bind("nhienLieuDuKien") %>'></asp:Label>
                 </ItemTemplate>
                 <EditItemTemplate>
                     <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("nhienLieuDuKien") %>' 
                         CssClass="gw-input"></asp:TextBox>
                 </EditItemTemplate>
                 <FooterTemplate>
                     <asp:TextBox ID="txtNhienLieu" runat="server" CssClass="gw-input"></asp:TextBox>
                 </FooterTemplate>
                 <ItemStyle HorizontalAlign="Center" Width="100px" />
             </asp:TemplateField>
             <asp:CommandField ButtonType="Image" CancelImageUrl="~/images/delete.gif" 
                 EditImageUrl="~/images/edit.gif" ShowEditButton="True" 
                 UpdateImageUrl="~/images/save.gif">
             <ItemStyle Width="70px" />
             </asp:CommandField>
             <asp:TemplateField ShowHeader="False">
                 <FooterTemplate>
                     <asp:ImageButton ID="imbt_insert" runat="server" ImageUrl="~/images/add.png" 
                         onclick="imbt_insert_Click" ToolTip="Thêm Chặng Bay Mới!" />
                 </FooterTemplate>
                 <ItemTemplate>
                     <asp:ImageButton ID="ImageButton1" runat="server" CausesValidation="False" 
                         CommandName="Delete" ImageUrl="~/images/delete-item.jpg" Text="Delete" 
                         ToolTip="Xóa" />
                 </ItemTemplate>
                 <ItemStyle Width="50px" />
             </asp:TemplateField>
    </Columns>
         <EditRowStyle BackColor="#DFDFDF" />
        <FooterStyle BackColor="#DFDFDF" ForeColor="White" Font-Bold="True" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerSettings Mode="NumericFirstLast" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />

    </asp:GridView>
    </div>
     </ContentTemplate>
    </asp:UpdatePanel>
     <table align="center" class="style1">
        <tr>
            <td class="style2"></td>
               
            <td>
               
                <input id="btn_tim_kiem_chang_bay" type="button" value="Tìm Kiếm Chặng Bay"  class ="button2" />
            </td>
        </tr>
     </table>
    <div id="timKiemChangBay">
       <table align="center" class="style1-fancybox">
        <tr>
            <td colspan="2">
             <h3 class="page-title-517">QUẢN LÝ CHẶNG BAY</h3>
             </td>
        </tr>
        <tr>
            <td class="style2-fancybox" >
              <span style="margin-left:20px">
                Sân Bay Đi: 
                <asp:DropDownList ID="ddlSanBayDi" runat="server"  
                  DataTextField="tenSanBay" DataValueField="ID_sanBayDi" CssClass="ddlSanBay1" ></asp:DropDownList></span></td>
            <td >
              <span style="margin-left:20px">
                Sân Bay Đến:  
                <asp:DropDownList ID="ddlSanBayDen" runat="server"
                  DataTextField="tenSanBay" DataValueField="ID_sanBayDen" CssClass="ddlSanBay1"></asp:DropDownList> 
              </span></td>
              
        </tr>
        <tr>
          <td class="style2-fancybox" ></td>
              
            <td >
              <asp:Button ID="btnSearch_ChangBay" runat="server" CssClass="btnSearch-ChangBay-517"   />
           </td>
        </tr>
      </table>
      <div id= "result">
      </div>
    </div>
   
</asp:Content>
